001 /*
002 * Copyright 2004-2005 Stephen J. McConnell.
003 * Copyright 2004 Niclas Hedhman.
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
014 * implied.
015 *
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 */
019
020 package net.dpml.lang;
021
022 import java.io.IOException;
023
024 /**
025 * Exception to indicate that there was a part handler related error.
026 *
027 * @author <a href="http://www.dpml.net">The Digital Product Meta Library</a>
028 * @version 1.0.0
029 */
030 public class PartException extends IOException
031 {
032 /**
033 * Serial version identifier.
034 */
035 static final long serialVersionUID = 1L;
036
037 /**
038 * Construct a new <code>PartException</code> instance.
039 *
040 * @param message The detail message for this exception.
041 */
042 public PartException( final String message )
043 {
044 this( message, null );
045 }
046
047 /**
048 * Construct a new <code>PartException</code> instance.
049 *
050 * @param message The detail message for this exception.
051 * @param cause the root cause of the exception
052 */
053 public PartException( final String message, final Throwable cause )
054 {
055 super( message );
056 super.initCause( cause );
057 }
058 }
059
060